package com.tea.Model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderRequest {
    // 微信支付要求参数
    @NotBlank(message = "用户openid不能为空")
    private String openid;
    // 业务参数
    @NotBlank(message = "商品ID不能为空")
    private String productId;
    @Min(value = 1, message = "购买数量至少为1")
    private Integer quantity;
    private String attach;
}
